
import Vue from 'vue'
import Router from 'vue-router'
const Login = ()=> import('@/views/login')
const Index =()=> import('@/views/Index')
import Order from './order'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children:[
        ...Order
      ]
    }
  ]
})
